class DegreeOfHyperthyroidismInPregnancyDosage():
    def __init__(self):
        # http://doctor-network.com/public/littletools/277.html
        pass

    def calc(self, data):
        """
        妊娠期甲亢程度和用药剂量间的关系
        """
        BMR = float(data['BMR'])  # 血清钙离子
        HR = float(data['HR'])  # 白蛋白
        if BMR <= 30 or HR <= 100:
            return {"propylthiouracil": "200-300"}
        elif 30 <= BMR < 60 or 100 <= HR < 120:
            return {"propylthiouracil": "300-400"}
        else:
            return {"propylthiouracil": "400-500"}


if __name__ == '__main__':
    print(DegreeOfHyperthyroidismInPregnancyDosage().calc({"BMR": "75", "HR": "176"}))
